const path = require("path");

module.exports = {
  mode: "development", 
  entry: "./src/app.js",
  output: {
    path: path.resolve(__dirname, "dist"), 
    filename: "demo.bundle.js", 
  },
  module: {
    rules: [
      {
        test: /\.css$/, 
        use: ["style-loader", "css-loader"], 
      },
      
    ],
  },
  devServer:{
    proxy:{ 
      "/api":{
        target:"http://localhost:9000",
        pathRewrite:{
            "/api":"" 
        }
      }
    }
}

};